package com.demo2do.fms.entity.authority;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.demo2do.core.format.PersistentFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 分区
 * 
 * @author Ysy
 */
@Entity
@Table(name = "VW_BRANCH")
@PersistentFormat(key=String.class)
public class Branch {
   
    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "assigned")
    private String id;
    
    /** 编码  */
    private String code;
    
    /** 名称  */
    private String name;
    
    /** 版本  */
    private Long version;
    
    @Column(name = "IS_DISABLED")
    @JsonIgnore(value = true)
    private Boolean disabled;
    
    /**
     * 
     * the default constructor
     */
    public Branch() {
    }
    
    /**
     * @return the id
     */
    public String getId() {
        return this.id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return this.name;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return this.code;
    }

    /**
     * @return the version
     */
    public Long getVersion() {
        return this.version;
    }

    /**
     * @return the disabled
     */
    public Boolean getDisabled() {
        return disabled;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @param version the version to set
     */
    public void setVersion(Long version) {
        this.version = version;
    }

    /**
     * @param disabled the disabled to set
     */
    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }
    
}
